package org.com.ashen.service.dao;

import javax.annotation.Resource;

import org.apache.commons.lang3.StringUtils;
import org.com.ashen.dal.dataobject.SysUsers;
import org.com.ashen.dal.mapper.SysUsersMapper;
import org.springframework.stereotype.Service;

@Service("sysUsersDao")
public class SysUsersDao {
	@Resource
    private SysUsersMapper sysUsersMapper;
	
	public SysUsers getUserByLoginId(String loginid) {
        if (StringUtils.isBlank(loginid)) {
            return null;
        }
        return sysUsersMapper.selectByPrimaryKey(loginid);
    }
}
